package test;

import main.StatisticsMap;

public class Function {
	
	private static final String name= "1";
	public void func()
	{
		long start = System.nanoTime();
		int b =55;
		b++;
		long use = System.nanoTime()-start;
		StatisticsMap.getMap().put(name, use-start);
		System.out.println();
	}
	
	/**
	 * 1W次调用多消耗0.619毫秒
	 * @param args
	 */
	public static void main(String[] args) {
		Function func = new Function();
		func.func();
		func.func();
		func.func();
		
		func.func();
		func.func();
		long start = System.currentTimeMillis();
		
		for(int i = 0;i<10000000;i++)
		{
			func.func();
		}
		
		
		long use = System.currentTimeMillis()-start;
		System.out.println(use);
	}
	
	
}	
